package cn.kgc.jjl.workhome;

import java.util.HashMap;

public class Test {
	public static void main(String[] args) {
		HashMap<String,String> map = new HashMap<String, String>();
		map.put("李白", "唐代大诗人xxxx");
		map.put("liao","taiwanzuojia");
		String key = (String) map.get("李白");
		Boolean contKey =	map.containsKey("李白");
		Boolean contVal =	map.containsValue("台湾著名作家");
		int size =map.size();
		Boolean isEmpty = map.isEmpty();
		System.out.println(key);
		System.out.println(contKey);
		
		System.out.println(contVal);
		
		System.out.println(size);
		
		System.out.println(isEmpty);
		
		
		
} 
}